import request from '@/utils/request'

// 查询月度销售目标列表
export function deleteData(query) {
  return request({
    url: '/sale/BiSaleTarget/deleteData',
    method: 'get',
    params: query
  })
}
// 查询月度销售目标列表
export function listBiSaleTarget(query) {
  return request({
    url: '/sale/BiSaleTarget/list',
    method: 'get',
    params: query
  })
}
// 查询月度销售目标列表
export function selectDateTargetDate(id) {
  return request({
    url: '/sale/BiSaleTarget/selectDateTargetDate/'+ id,
    method: 'get',
    // params: query
  })
}


// 查询月度销售目标列表
export function selectUpdateData(query) {
  return request({
    url: '/sale/BiSaleTarget/selectUpdateData',
    method: 'get',
    params: query
  })
}
// 查询月度销售目标详细
export function getBiSaleTarget(id) {
  return request({
    url: '/sale/BiSaleTarget/' + id,
    method: 'get'
  })
}

// 新增月度销售目标
export function addBiSaleTarget(data) {
  return request({
    url: '/sale/BiSaleTarget',
    method: 'post',
    data: data
  })
}
// 新增月度销售目标
export function updateDateTargetDate(data) {
  return request({
    url: '/sale/BiSaleDateTarget/updateDateTargetDate',
    method: 'post',
    data: data
  })
}
// 新增月度销售目标
export function importData(data) {
  return request({
    url: '/sale/BiSaleTarget/importData1',
    method: 'post',
    data: data
  })
}
// 修改月度销售目标
export function updateBiSaleTarget(data) {
  return request({
    url: '/sale/BiSaleTarget',
    method: 'put',
    data: data
  })
}

// 删除月度销售目标
export function delBiSaleTarget(id) {
  return request({
    url: '/sale/BiSaleTarget/' + id,
    method: 'delete'
  })
}
